package demo;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.Statement;

/**
 * @author zt
 * @date 2019-12-22 10:40
 */
public class Demo1 {
    public static void main(String[] args) throws ClassNotFoundException, SQLException {
        Class.forName("com.mysql.jdbc.Driver");
        Connection conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/db5", "root", "root");
        Statement stat = conn.createStatement();
        String sql="333333333333";
        int i = stat.executeUpdate(sql);
        System.out.println(i);
        stat.close();
        conn.close();
    }
}
